package org.jeecg.modules.fund.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.fund.service.IFundValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * 更新基金估值
 */
@Slf4j
@Component
public class UpdateAllFundEstimateValJob {
    @Autowired
    private IFundValueService fundValueService;

    @Scheduled(cron = "0 */5 9,10,11,13,14,15 * * MON-FRI")
    public void execute() throws InterruptedException {
        fundValueService.updateEstimate();
    }
}
